import axios from '../axios'


const classes = {

    getclasses(params) {
        return axios({
            url: "/classes/getClasses",
            method: "GET",
            params
        })
    },
    //删除
    delclass(_id) {
        return axios({
            url: "/classes/deleteClasses",
            method: "delete",
            data: {
                _id,
            },
        });
    },


    //新增班级
    addclasses(Class) {
        return axios({
            url: "/classes/addClasses",
            method: "post",
            data: Class,
        });

    },







}


export default classes